﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QLLoaiTV.aspx.cs" Inherits="admin_QLLoaiTV" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" DeleteCommand="DELETE FROM [LOAITV] WHERE [MALOAI] = ?" InsertCommand="INSERT INTO [LOAITV] ([MALOAI], [TENLOAITV], [MOTA], [XOA]) VALUES (?, ?, ?, ?)" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [LOAITV]" UpdateCommand="UPDATE [LOAITV] SET [TENLOAITV] = ?, [MOTA] = ?, [XOA] = ? WHERE [MALOAI] = ?">
                    <DeleteParameters>
                        <asp:Parameter Name="MALOAI" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="MALOAI" Type="Int32" />
                        <asp:Parameter Name="TENLOAITV" Type="String" />
                        <asp:Parameter Name="MOTA" Type="String" />
                        <asp:Parameter Name="XOA" Type="Boolean" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="TENLOAITV" Type="String" />
                        <asp:Parameter Name="MOTA" Type="String" />
                        <asp:Parameter Name="XOA" Type="Boolean" />
                        <asp:Parameter Name="MALOAI" Type="Int32" />
                    </UpdateParameters>
                </asp:SqlDataSource>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="MALOAI" DataSourceID="SqlDataSource1">
                    <Columns>
                        <asp:BoundField DataField="MALOAI" HeaderText="MALOAI" ReadOnly="True" SortExpression="MALOAI" />
                        <asp:BoundField DataField="TENLOAITV" HeaderText="TENLOAITV" SortExpression="TENLOAITV" />
                        <asp:BoundField DataField="MOTA" HeaderText="MOTA" SortExpression="MOTA" />
                        <asp:CheckBoxField DataField="XOA" HeaderText="XOA" SortExpression="XOA" />
                        <asp:CommandField ShowEditButton="True" ShowInsertButton="True" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    
    </div>
    </form>
</body>
</html>
